package cn.yoyo.mapper;

import cn.yoyo.entity.Book;
import cn.yoyo.entity.Hot;

import java.util.List;
import java.util.Map;

public interface BookMapper {
    public List<Book> findAll();

    public Book findById(Integer bookid);

    public List<Book> findByPage(Map<String, Integer> map);

    public int add(Book book);

    public int update(Book book);

    public int totalPage(Map<String, Object> map);

    public List<Hot> findHot(Map<String, Integer> map);

    public List<Book> findIf(Map<String, Object> map);

    public List<Book> findBookByPage(Map<String, Integer> map);

    public List<Book> findRate5();

    public List<Book> findSale5();

    public List<Book> findFav5();

    public List<Book> findBookByPageRate(Map<String, Integer> map);

    public List<Book> findBookByPageSale(Map<String, Integer> map);

    public List<Book> findBookByPageFav(Map<String, Integer> map);

    public int delete(Integer id);

    public int updateRFS(Map<String, Object> map);
}
